package rentadomus

class Phone {
    
    Integer number
    Person idPerson
    String phoneType
    
    static mapping = {
        //id generator:'assigned', name:'numeroTelefono'
        id generator:'assigned', name:'number'
        phoneType column: 'phone_type'
        idPerson column: 'id_Person'
        version false
    }
    static constraints ={
        phoneType inList:["Cell phone", "Home", "Work", "Other"]
    }
}
